import request from '../utils/request'

// 获取验证码
export const getCode = (phone: string) => request({
    url: '/api/code',
    method: 'GET',
    params: {
        phone
    }
})

// 用户登录
export const login = (loginData: LoginData) => request<any, LoginResonse>({
    url: '/api/login',
    method: 'POST',
    data: loginData,
})
